#include "PointDb.h"

namespace common {

PointDb::PointDb() :
	DataBase<Point*> ("PointDbDerived") {
//	this->add(new Point(0, 0, 0)); // punkt zerowy NULL
}

Point* PointDb::addPoint(Coordinate c) {
	Point* point = new Point(getMaxId() + 1, c.x, c.y);
	return add(point);
}
Point* PointDb::addPoint(Coordinate* c) {
	Point* point = new Point(getMaxId() + 1, c->x, c->y);
	return add(point);
}
Point* PointDb::addPoint(const skreal& x,const skreal& y){
	Point* point = new Point(getMaxId() + 1, x, y);
	return add(point);
}

PointDb::~PointDb() {
}

}
